package cn.zhangjie.product.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (Product)实体类
 *
 * @author makejava
 * @since 2022-08-11 23:27:38
 */
@Data
public class Product{
    
    
    private Long id;
    /**
    * 服务名称
    */
    private String name;
    /**
    * 成本价
    */
    private BigDecimal costprice;
    /**
    * 售价
    */
    private BigDecimal saleprice;
    /**
    * 存放fastdfs地址，多个资源使用，分割
    */
    private String resources;
    /**
    * 销售数量
    */
    private Long salecount;
    /**
    * 状态：0下架 1上架
    */
    private Long state = 0l;
    /**
    * 下架时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "gtm+8")
    private Date offsaletime;
    /**
    * 上架时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "gtm+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "gtm+8")
    private Date createtime = new Date();

    private ProductDetail productDetail;











}
